package com.mdb.open.epay.domain.po.epay;

import com.baomidou.mybatisplus.annotation.*;
import com.mdb.bc.api.data.DataObjectBase;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 类描述：
 * 结算记录表实体类
 *
 * @author liuyi
 * @date 2019-11-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("qp_settle_rec")
public class QpSettleRec extends DataObjectBase {

    private static final long serialVersionUID = 1L;
    /**
     * 主键ID
     */
    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 产品code
     */
    @ApiModelProperty(value = "产品code")
    @TableField("prod_code")
    private String prodCode;

    /**
     * 产品名称
     */
    @ApiModelProperty(value = "产品名称")
    @TableField("prod_name")
    private String prodName;

    /**
     * 客户号
     */
    @ApiModelProperty(value = "客户号")
    @TableField("customer_code")
    private String customerCode;

    /**
     * 所属客户名称
     */
    @ApiModelProperty(value = "所属客户名称")
    @TableField("customer_name")
    private String customerName;

    /**
     * 内部订单号
     */
    @ApiModelProperty(value = "内部订单号")
    @TableField("inner_order_no")
    private String innerOrderNo;

    /**
     * 结算外部订单号
     */
    @ApiModelProperty(value = "结算外部订单号")
    @TableField("core_order_no")
    private String coreOrderNo;

    /**
     * 结算类型
     */
    @ApiModelProperty(value = "结算类型")
    private String type;

    /**
     * 金额
     */
    @ApiModelProperty(value = "金额")
    private BigDecimal amount;

    /**
     * 状态 1.待支付 2.支付成功 3.支付失败 4.订单超时
     */
    @ApiModelProperty(value = "状态 1.待支付 2.支付成功 3.支付失败 4.订单超时")
    private String status;

    /**
     * 结算账号
     */
    @ApiModelProperty(value = "结算账号")
    @TableField("settle_acc_no")
    private String settleAccNo;

    /**
     * 交易日期
     */
    @ApiModelProperty(value = "交易日期")
    @TableField("trans_date")
    private LocalDateTime transDate;

    /**
     * 操作人No
     */
    @ApiModelProperty(value = "操作人No")
    @TableField("opt_user_id")
    private String optUserId;

    /**
     * 操作人name
     */
    @ApiModelProperty(value = "操作人name")
    @TableField("opt_user_name")
    private String optUserName;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    /**
     * 创建者No
     */
    @ApiModelProperty(value = "创建者No")
    @TableField(value = "create_user_id", fill = FieldFill.INSERT)
    private String createUserId;

    /**
     * 创建者
     */
    @ApiModelProperty(value = "创建者")
    @TableField(value = "create_user_name", fill = FieldFill.INSERT)
    private String createUserName;

}
